package com.yuanfengerp.salesReturn.dao;

import com.yuanfengerp.salesReturn.model.salesReturn;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ISalesReturnDao {
    //新增退货单
    int insertSalesReturn(salesReturn salesReturn);
    //审核通过退货单
    int updateSalesReturnAgree(String salesReturnNumber);
    //审核拒绝退货单
    int updateSalesReturnRefuse(String salesReturnNumber);
    //通过单据号，仓库，操作人，操作日期，审核人，审核日期，状态，销售员，销售出库单号，结算状态，查询所有退货单
    List<salesReturn> selectAllSalesReturn(Map<String, Object> condition);
    //通过id查看单条退货单
    salesReturn selectSalesReturn(String salesReturnNumber);
    //通过id查看退货单状态
    int selectSalesReturnStatus(String salesReturnNumber);
}
